﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;

public partial class role_default : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        bd();
    }

    private void bd()
    {
        CMSModel.CMSEntities cms=  DBManager.GetCmsEmtity();
        Repeater1.DataSource = cms.Role.Select(x=> new {RoleId=x.RoleId,RoleName=x.RoleName,Enable=x.IsEnable?"正常":"禁止"  });
        Repeater1.DataBind();
    }
}